import { Context } from "./UseReducerFun"
import { useContext } from "react"
export default function ReducerThree() {
    const context = useContext(Context)
    return <div>
        <div>son3:{context.objRes.num}</div>
        <button onClick={() => context.dispatch({ type: 'add'})}>+1</button>
        <button onClick={() => context.dispatch({ type: 'del'})}>-1</button>
    </div>
}